//
//  DPCell.m
//  项目A
//
//  Created by lanou3g on 15/8/31.
//  Copyright (c) 2015年 王钧. All rights reserved.
//

#import "DPCell.h"
#import "DPModel.h"
#import "UIImageView+WebCache.h"

@implementation DPCell

- (void)setCellWithDPModel:(DPModel *)model {
    
    [self.DPImage sd_setImageWithURL:[NSURL URLWithString:model.cover_image_url] placeholderImage:[UIImage imageNamed:@"iconfont-icontu"]];
    self.DPTitle.text = model.name;
    self.DPFavorites.text = [NSString stringWithFormat:@"♥%@",model.favorites_count];
    
}

@end
